package chords;

import java.util.HashMap;

public class KeyChordMapping {

    private HashMap<Integer, EChord> mapping = new HashMap<Integer, EChord>();

    public KeyChordMapping() {
	mapping.put(65, EChord.C);
	mapping.put(83, EChord.D);
	mapping.put(68, EChord.E);
	mapping.put(70, EChord.F);
	mapping.put(71, EChord.G);
	mapping.put(72, EChord.A);
	mapping.put(74, EChord.B);
	mapping.put(75, EChord.C1);
	mapping.put(76, EChord.D1);
	mapping.put(59, EChord.E1);
	mapping.put(222, EChord.F1);
	mapping.put(87, EChord.C_);
	mapping.put(69, EChord.D_);
	mapping.put(84, EChord.F_);
	mapping.put(89, EChord.G_);
	mapping.put(85, EChord.Bb);
	mapping.put(79, EChord.C_1);
	mapping.put(80, EChord.D_1);
    }

    public EChord getChord(int extKey) {
	return mapping.get(extKey);
    }
}